﻿using UnityEngine;

namespace CWM.Skinn
{
    [System.Serializable]
    public class AvatarPose
    {
        public Avatar m_avatar = null;
        public Bone[] bones = new Bone[0];
        public int[] humanoidBones = new int[0];

        [System.Serializable]
        public class Bone
        {
            public string m_boneName;
            public string m_humanBoneName;
            public Vector3 m_position;
            public Quaternion m_rotation;
            public Vector3 m_scale;

            public Bone()
            {
                this.m_boneName = "";
                this.m_humanBoneName = "";
                this.m_position = Vector3.zero;
                this.m_rotation = Quaternion.identity;
                this.m_scale = Vector3.zero;
            }
        }
    }
}